package com.yx.system.service.impl;

import com.yx.system.dao.SysPriceDao;
import com.yx.system.entity.SysPrice;
import com.yx.system.service.SysPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class SysPriceServiceImpl implements SysPriceService {
	@Autowired
	private SysPriceDao priceDao;
	
	@Override
	public SysPrice queryObject(Integer id){
		return priceDao.queryObject(id);
	}
	
	@Override
	public List<SysPrice> queryList(Map<String, Object> map){
		return priceDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return priceDao.queryTotal(map);
	}
	
	@Override
	public void save(SysPrice price){
		priceDao.save(price);
	}
	
	@Override
	public void update(SysPrice price){
		priceDao.update(price);
	}
	
	@Override
	public void delete(Integer id){
		priceDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		priceDao.deleteBatch(ids);
	}
	
}
